package com.hsm3;

public class Boy {
    //属性
    int age;
    String name;

    //方法
    public void buy() {
        System.out.println("我给你买东西");
    }

    //构造器

    public Boy(int age, String name) {
        this.age = age;
        this.name = name;
    }
}
